<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>船舶违法举报信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<!-- <ul class="nav nav-tabs">
		<li><a href="${ctx}/ship/shipIllegalReport/">船舶违法举报信息列表</a></li>
		<li class="active"><a href="${ctx}/ship/shipIllegalReport/form?id=${shipIllegalReport.id}">船舶违法举报信息<shiro:hasPermission name="ship:shipIllegalReport:edit">${not empty shipIllegalReport.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="ship:shipIllegalReport:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/> -->
	<form:form id="inputForm" modelAttribute="shipIllegalReport" action="${ctx}/ship/shipIllegalReport/save" method="post" class="form-horizontal btnbottom">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>	
		<table class="field">	
				<tr>
					<th><label class="control-label">船牌号：</label></th>
					<td>
							<form:input path="shipNo" htmlEscape="false" maxlength="50" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<th><label class="control-label">省份：</label></th>
					<td>
							<form:input path="province" htmlEscape="false" maxlength="38" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<th><label class="control-label">城市：</label></th>
					<td>
							<form:input path="city" htmlEscape="false" maxlength="38" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<th><label class="control-label">县（区）：</label></th>
					<td>
							<form:input path="district" htmlEscape="false" maxlength="38" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<th><label class="control-label">违法类型：</label></th>
					<td>
							<form:input path="criminalType" htmlEscape="false" maxlength="38" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<th><label class="control-label">违法行为：</label></th>
					<td>
							<form:input path="unlawfulAct" htmlEscape="false" maxlength="500" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<th><label class="control-label">举报人ID：</label></th>
					<td>
							<form:input path="reportUserId" htmlEscape="false" maxlength="38" class="input-xlarge required"/>
							<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<th>
					</th>
					<td></td>
				</tr>
				<tr>
					<th><label class="control-label">详细地址：</label></th>
					<td colspan=3>
							<form:textarea path="address" htmlEscape="false" rows="3" maxlength="255" class="input-xxlarge g-textarea"/>
					</td>
				</tr>
				<tr>
					<th><label class="control-label">备注信息：</label></th>
					<td colspan=3>
							<form:textarea path="remarks" htmlEscape="false" rows="3" maxlength="255" class="input-xxlarge g-textarea"/>
					</td>
				</tr>
		</table>
		<div id="btnbottom" class="form-actions">
			<shiro:hasPermission name="ship:shipIllegalReport:edit"><input id="btnSubmit" class="btn btn-primary" type="submit"  onclick="$('#closedwindow', window.parent.document).val('true');" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="关闭" onclick="top.$.jBox.close(true);"/>
		</div>
	</form:form>
</body>
</html>